import java.io.*;
import java.util.Scanner;

public class EnpryptFile {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        String inName = scanner.next();
        String outName = scanner.next();
        File in = new File(inName);
        File out = new File(outName);
        try {
            FileInputStream inputStream = new FileInputStream(in);
            FileOutputStream outputStream = new FileOutputStream(out,true);
            int byteRead;
            while ((byteRead = inputStream.read()) != -1){
                outputStream.write(byteRead + 5);
            }
            inputStream.close();
            outputStream.close();
        }
        catch (IOException e){
            System.out.println(e.toString());
        }
    }
}
